const mongoose = require("mongoose");

const PetModel = require("./../models/pet"); // Assuming addPetSchema is stored in a separate file

const NewPetSchema = new mongoose.Schema({
  ...PetModel.schema.paths,
  isHealthy: {
    type: String,
    required: false,
  },
  shipDate: {
    type: Date,
    required: false,
  },
  completed: {
    type: Boolean,
    required: false,
  },
  petId: {
    type: String,
    required: false,
  },
});

module.exports = mongoose.model("Orders", NewPetSchema);
